package com.liyy.platform.domain;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.util.Date;
import java.util.List;

//import org.springframework.data.annotation.Version;
//import org.springframework.data.elasticsearch.annotations.Document;

//@Document(indexName = "platform", type = "product")
@Data
public class Goods {
    //主键id
	private Long id;
	//供应商
	private Long supplierId;
	//供应商名称
	private String supplierName;
	//产品类别
	private Long cateId;
	//产品类别名称
	private String cateName;
	//产品品牌
	private String goodsBrand;
	//产品编码
	private String goodsCode;
	//产品名称
	private String goodsName;
	//产品关键词
	private String goodsKeyWord;
	//产品单位
	private String goodsUnit;
	//规格型号
	private String goodsSku;
	//商品属性
	private String goodsAttr;
	//商品主图
	private String goodsMainImgPath;
	//产品状态
	private Integer goodsState;
	//是否签约
	private Integer isSign;
	//是否含税
	private Integer isFax;
	//是否运费
	private Integer isFreight;
	//市场价格
	private Double marketPrice;
	//供应能力
	private Double quantitySupply;
	//最小起订数量
	private Double quantityOrderMin;
	//供应周期
	private Integer supplyCycle;
	//产地
	private String originPlace;
	//创建人
	private String createrName;
	//创建时间
	private Date creationTime;
	//更新数
	private Integer updateCount;
	//审核人id
	private Long approverId;
	//审核人
	private String approverName;
	//审核时间
	private Date approvalTime;
	//驳回理由
	private String disapprovalReason;
	//提交时间
	private Date submitTime;

	//详细说明
	private String detail;
	 // 价格段
	private List<GoodsPrice> goodsPriceList;
	// 图片
	private List<GoodsImage> goodsImageList;

	@JsonIgnore
//	@Version
	private Long version;

}